package com.inspinia.message.common.model;

import java.io.Serializable;

/**
 * 通知收件人
 * <p>
 * Created by heshun on 2018-1-8.
 */
public class NoticeAddressee implements Serializable {
    /**
     *
     */
    private Long id;
    /**
     * 收件人id（根据notice表的addressee_type决定）
     */
    private Long addresseeId;
    /**
     * 消息id
     */
    private Long noticeId;
    /**
     * 收件人类型
     */
    private NoticeAddresseeType addresseeType;
    /**
     * 是否已经推送过，true表示推送过
     */
    private boolean pushed;

    public NoticeAddressee() {
    }



    public NoticeAddressee(Long noticeId, NoticeAddresseeType addresseeType, Long addresseeId, boolean pushed) {
        this.addresseeId = addresseeId;
        this.noticeId = noticeId;
        this.addresseeType = addresseeType;
        this.pushed = pushed;
    }

    public NoticeAddresseeType getAddresseeType() {
        return addresseeType;
    }

    public void setAddresseeType(NoticeAddresseeType addresseeType) {
        this.addresseeType = addresseeType;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return this.id;
    }

    public void setAddresseeId(Long addresseeId) {
        this.addresseeId = addresseeId;
    }

    public Long getAddresseeId() {
        return this.addresseeId;
    }

    public void setNoticeId(Long noticeId) {
        this.noticeId = noticeId;
    }

    public Long getNoticeId() {
        return this.noticeId;
    }

    public boolean isPushed() {
        return pushed;
    }

    public void setPushed(boolean pushed) {
        this.pushed = pushed;
    }
}